<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>输入物流</title>
    <link rel="stylesheet" href="css/base.css"/>
    <link rel="stylesheet" href="css/all.css"/>
    <link rel="stylesheet" href="css/iconfont.css"/>
    <link rel="stylesheet" href="css/enter-logistics.css"/>
</head>
<body>
<div>
    <div class="head">
         <span href="javascript:;" onclick="go()">
        <i class="iconfont icon-iconfontjiantou1"></i></span>
        <h1 class="titles">输入物流</h1>
        <a onclick="save()">
            <span class="achieve">保存</span>
        </a>
    </div>
    <div class="middle">
        <div class="name">
            <span> 订 单 号</span>
            <input type="text" placeholder="请输入订单号" class="resetUpwd-inputs" id="expressNo"/>
        </div>
        <div class="name">
            <span>物流公司</span>
            <input type="text" placeholder="请输入物流公司" class="resetUpwd-inputs" id="expressCompanyName"/>
        </div>
    </div>
</div>
<script src="js/x_rem.js"></script>
<script src="js/all.js"></script>
<script src="./js/jquery-1.10.2.js"></script>
<script src="js/layer/layer.js"></script>
<script>
    function save() {
        var expressNo=$("#expressNo").val();
        var expressCompanyName=$("#expressCompanyName").val();
        var data = JSON.stringify({
            "orderId": GetQueryString("orderId"),
            "expressNo":expressNo,
            "expressCompanyName":expressCompanyName
        });
        var success = (data) =>{
            if (data.message.code == 200) {
                location.href='./order-send-goods.html';
            } else {
                popup(data.message.msg);
            }
        }
        Hajax("post", "/app/order/editWuLiu", data, success);
    }
</script>
</body>
</html>